package Year22_Month06.day26;

import java.util.Scanner;

public class 删除公共字符 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while(sc.hasNext()){
            char[] arr = sc.nextLine().toCharArray();
            String str = sc.nextLine();
            for (int i = 0; i < arr.length; i++) {
                if(!str.contains(String.valueOf(arr[i]))){
                    System.out.println(arr[i]);
                }
            }
            System.out.println();
        }
    }
}
